﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace Developer.Core.FrameWork.Common.ExceptionHandler.Extensions
{
    /// <summary>
    /// 框架自定义异常中间件扩展
    /// </summary>
    public static class FrameWorkExceptionMiddleWareExtensions
    {
        public static IApplicationBuilder UseFrameWorkException(this IApplicationBuilder app)
        {
            app.UseMiddleware<FrameWorkExceptionMiddleWare>();

            return app;
        }
    }
}
